using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class rotateZ : MonoBehaviour
{
    public float speed=0.01f;
    // Update is called once per frame
    void Update()
    {
        this.transform.rotation = this.transform.rotation * new Quaternion(0, 0, Mathf.Sin(speed), Mathf.Cos(speed));
    }
}
